package com.fagejiang.dao;

import com.fagejiang.model.UserInfoVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

/**
 * TODO 空的 UserInfoMapper 接口， 用于测试只配置XML方法，能不能使用
 *
 * @author LinFH
 * @version 1.0
 * @date 2021-03-09 9:24
 */
public interface UserInfoMapper {
    @Select("select user_code AS userCode, url, user_name AS userName, password FROM user_config WHERE user_code = #{userCode}")
    Map<String, Object> getUserConfigForUserInfoMapper(@Param("userCode") String userCode);


    UserInfoVO getUserConfig(@Param("userCode") String userCode);
}
